<form method="post" action="/sys/system/edit" enctype="multipart/form-data" class="pageForm required-validate"
      onsubmit="return iframeCallback(this, pageRefresh)">
    <input type="hidden" id="id" name="id" th:value="${entity.id}">
    <input type="hidden" id="cmd5" name="cmd5" value="">
    <input type="hidden" id="uid" name="uid" value="">
    <input type="hidden" id="randomData" name="randomData" value="">
    <div class="ibox no-margins no-padding no-borders">
        <div class="ibox-title p-xs ljFixBoxTitle">
            <div class="btn btn-sm btn-primary pull-right" id="btnEditSubmit"><i class="fa fa-paste">提交编辑</i></div>
        </div>
        <div style="height:40px;"></div>
        <div class="ibox-content">
            <div class="row">
                <div class="form-group col-md-4">
                    <label>系统编号(<b class="text-danger">*</b>):</label>
                    <input name="systemCode" type="text" placeholder="" class="form-control input-sm required" maxlength="20"
                           th:value="${entity.systemCode}">
                </div>
                <div class="form-group col-md-4">
                    <label>系统名称(<b class="text-danger">*</b>):</label>
                    <input name="systemName" type="text" placeholder="" class="form-control input-sm required" maxlength="32"
                           th:value="${entity.systemName}">
                </div>
                <div class="form-group col-md-4">
                    <label>系统排序(<b class="text-danger">*</b>):</label>
                    <input name="systemSort" type="text" placeholder="" class="form-control input-sm required digits" maxlength="2"
                           th:value="${entity.systemSort}">
                </div>
            </div>
            <div class="row">
                <div class="form-group col-md-4">
                    <label>部署IP(<b class="text-danger">*</b>):</label>
                    <input name="systemHost" type="text" placeholder="" class="form-control input-sm required" maxlength="20"
                           th:value="${entity.systemHost}">
                </div>
                <div class="form-group col-md-4">
                    <label>部署端口(<b class="text-danger">*</b>):</label>
                    <input name="systemPort" type="text" placeholder="" class="form-control input-sm required" maxlength="5"
                           th:value="${entity.systemPort}">
                </div>
                <div class="form-group col-md-4">
                    <label>系统访问地址(<b class="text-danger">*</b>):</label>
                    <input name="systemUrl" type="text" placeholder="" class="form-control input-sm required" maxlength="512"
                           th:value="${entity.systemUrl}">
                </div>
            </div>
            <div class="row">
                <div class="form-group col-md-4">
                    <label>系统LOGO(<b class="text-danger">*</b>):</label>
                    <input name="systemLogo" type="text" placeholder="" class="form-control input-sm required" maxlength="512"
                           th:value="${@lj.jsonKey(entity.systemDesc,'systemLogo')}">
                </div>
                <div class="form-group col-md-4">
                    <label>登录背景图(<b class="text-danger">*</b>):</label>
                    <input name="systemBackground" type="text" placeholder="" class="form-control input-sm required" maxlength="512"
                           th:value="${@lj.jsonKey(entity.systemDesc,'systemBackground')}">
                </div>
                <div class="form-group col-md-4">
                    <label>ICP备案号(<b class="text-danger">*</b>):</label>
                    <input name="systemIcp" type="text" placeholder="" class="form-control input-sm required" maxlength="32"
                           th:value="${@lj.jsonKey(entity.systemDesc,'systemIcp')}">
                </div>
                <div class="form-group col-md-4">
                    <label>客服热线(<b class="text-danger">*</b>):</label>
                    <input name="systemCustomePhone" type="text" placeholder="" class="form-control input-sm required" maxlength="20"
                           th:value="${@lj.jsonKey(entity.systemDesc,'systemCustomePhone')}">
                </div>
                <div class="form-group col-md-4">
                    <label>静态资源地址:</label>
                    <input name="systemCdnPath" type="text" placeholder="" class="form-control input-sm" maxlength="256"
                           th:value="${@lj.jsonKey(entity.systemDesc,'systemCdnPath')}">
                </div>
            </div>
            <div class="row">
                <div class="form-group col-md-4">
                    <label>EXCEL文件(<b class="text-danger">*</b>):</label>
                    <input name="systemFileExcelPath" type="text" placeholder="" class="form-control input-sm required" maxlength="128"
                           th:value="${@lj.jsonKey(entity.systemDesc,'systemFileExcelPath')}">
                </div>
                <div class="form-group col-md-4">
                    <label>KEY文件(<b class="text-danger">*</b>):</label>
                    <input name="systemFileKeyPath" type="text" placeholder="" class="form-control input-sm required" maxlength="128"
                           th:value="${@lj.jsonKey(entity.systemDesc,'systemFileKeyPath')}">
                </div>
            </div>
            <div class="row">
                <div class="form-group col-md-4">
                    <label>图片文件(<b class="text-danger">*</b>):</label>
                    <input name="systemFilePicPath" type="text" placeholder="" class="form-control input-sm required" maxlength="128"
                           th:value="${@lj.jsonKey(entity.systemDesc,'systemFilePicPath')}">
                </div>
                <div class="form-group col-md-4">
                    <label>图片HTTP(<b class="text-danger">*</b>):</label>
                    <input name="systemFilePicHttp" type="text" placeholder="" class="form-control input-sm required" maxlength="128"
                           th:value="${@lj.jsonKey(entity.systemDesc,'systemFilePicHttp')}">
                </div>
            </div>
            <div class="row">
                <div class="form-group col-md-4">
                    <label>模版路径:</label>
                    <input name="systemTemplate" type="text" placeholder="" class="form-control input-sm"
                           th:value="${@lj.jsonKey(entity.systemDesc,'systemTemplate')}">
                </div>
            </div>
        </div>
    </div>
</form>
<script>
    jQuery(function ($) {
        $("#btnEditSubmit").on("click", function () {
            var values = {};
            modifyVerf(values);
            $("#cmd5").val(values.cmd5);
            $("#uid").val(values.uid);
            $("#randomData").val(values.randomData);
            $(this).closest("form").submit();
        });
    });
</script>